import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "@/assets/styles/index.scss";
import "@/assets/fonts/iconfont.css";
import App from "./App.vue";
import "@/utils/permission.js";
import '@/utils/rem.js'

// 添加router
import router from "./router/index.js";
import store from "./store";
// 全局组件注册
import Pagination from "@/components/Pagination/index.vue";

const app = createApp(App);
app.component("Pagination", Pagination);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(router).use(store).use(ElementPlus).mount("#app");
